package com.xiaoshuidi.cloud.module.contract.controller.admin.contract.vo;

import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.xiaoshuidi.cloud.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import static com.xiaoshuidi.cloud.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 合同杂费分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ContractExtrasDataPageReqVO extends PageParam {

    @Schema(description = "关联租客合同")
    private Long contractId;

    @Schema(description = "杂费分类| cycle 周期性费用 | once 一次性费用  |deposit 押金费用 | meter 抄表费用")
    private String feeSort;

    @Schema(description = "费项编号(关联Fee表)")
    private Long feeId;

    @Schema(description = "费项名称")
    private String feeName;

    @Schema(description = "费项金额")
    private BigDecimal amount;

    @Schema(description = "付几  |  付款周期")
    private Integer payMethodF;

    @Schema(description = "压几")
    private Integer payMethodY;

    @Schema(description = "优惠类型 cycle 周期性优惠 | once 一次性优惠")
    private String discountSort;

    @Schema(description = "优惠方式 rate 优惠比例 % | amount 优惠金额 元/月 | once 优惠金额 元")
    private String discountType;

    @Schema(description = "一次性优惠金额计入首期或末期账单 first 计入首期账单 | last 计入末期账单")
    private String discountOrder;

    @Schema(description = "优惠值")
    private BigDecimal discountValue;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date[] createTime;

    @Schema(description = "版本号")
    private Long version;

}
